package 责任链模式;

public class DepMgr extends Do{
    public DepMgr(Do next) {
        super(next);
    }

    @Override
    public void hander(Request req) {
        System.out.println("部门主管同意");
        if(req.getDays()>3){
            next.hander(req);
        }
    }
}
